//
//  ReadCharactAction.swift
//  Clock
//
//  Created by 方强 on 16/7/2.
//  Copyright © 2016年 MT. All rights reserved.
//

import UIKit
import CoreBluetooth

public class ReadCharactAction: BLEBaseAction {
    private var charact:CBCharacteristic?;
    
    public init(charact:CBCharacteristic?, option:BLEBaseAction_ActionOption!) {
        super.init(type: BLEBaseAction_ActionType.READCHACT, option: option);
        self.charact = charact;
    }
    
    public func getCharact() -> CBCharacteristic?{
        return charact;
    }
    
    public var onReadDatas:((ReadCharactAction, CBCharacteristic, Data?)->Void)?;
}
